namespace PickGold.Charting
{
    using System;
    using System.Security.Permissions;
    using System.Web;

    [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal), AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    public class FormatNumberEventArgs : EventArgs
    {
        private ChartElementType _elementType;
        private string _format;
        private string _localizedValue;
        private object _senderTag;
        private double _value;
        private ChartValueType _valueType;

        private FormatNumberEventArgs()
        {
        }

        internal FormatNumberEventArgs(double value, string format, ChartValueType valueType, string localizedValue, object senderTag, ChartElementType elementType)
        {
            this._value = value;
            this._format = format;
            this._valueType = valueType;
            this._localizedValue = localizedValue;
            this._senderTag = senderTag;
            this._elementType = elementType;
        }

        public ChartElementType ElementType
        {
            get
            {
                return this._elementType;
            }
        }

        public string Format
        {
            get
            {
                return this._format;
            }
        }

        public string LocalizedValue
        {
            get
            {
                return this._localizedValue;
            }
            set
            {
                this._localizedValue = value;
            }
        }

        public object SenderTag
        {
            get
            {
                return this._senderTag;
            }
        }

        public double Value
        {
            get
            {
                return this._value;
            }
        }

        public ChartValueType ValueType
        {
            get
            {
                return this._valueType;
            }
        }
    }
}

